package com.svpino.netflix;

import java.util.List;

import com.svpino.netflix.model.Feature;
import com.svpino.netflix.parsers.FeatureParser;

public class FeatureContext extends AbstractQueryable<Feature>{

	private final String resource;

	public FeatureContext(ProxyImpl connection, String resource) {
		super(connection);
		this.resource = resource;
	}

	@Override
	public List<Feature> list() {
		return new FeatureParser(getConnection()).list(getUrl(this.resource));
	}

}
